package com.lzy.cloud.url.service;

import com.lzy.cloud.url.dtos.ShortUrlDto;
import com.lzy.framework.template.BaseService;

public interface ShortUrlService extends BaseService<ShortUrlDto> {
    /**
     * 根据短地址查找
     *
     * @param url
     * @return
     */
    public ShortUrlDto findByShortUrl(String url);

    /**
     * 根据url查找
     *
     * @param url
     * @return
     */
    public ShortUrlDto findByUrl(String url);
}
